package com.motong.gongdan.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 联络灯请求
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "联络灯请求")
@Data
@Accessors(chain = true)
@TableName(value = "lamp_request")
public class LampRequest extends PublicPo implements Serializable {
    /**
     * 联络灯请求id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "联络灯请求id")
    private Long id;

    /**
     * 联络灯类型(lamp_type表id)
     */
    @TableField(value = "`type`")
    @ApiModelProperty(value = "联络灯类型(lamp_type表id)")
    private Long type;

    /**
     * 设备id
     */
    @TableField(value = "device_id")
    @ApiModelProperty(value = "设备id")
    private Long deviceId;

    /**
     * 处理状态(0 等待响应, 1 请求中, 2 已关闭)
     */
    @TableField(value = "deal_state")
    @ApiModelProperty(value = "处理状态(0 等待响应, 1 请求中, 2 已关闭)")
    private Integer dealState;

    /**
     * 处理人(多个以,号隔开)
     */
    @TableField(value = "deal_user",updateStrategy = FieldStrategy.NOT_NULL)
    @ApiModelProperty(value = "处理人(多个以,号隔开)")
    private String dealUser;

    /**
     * 处理人员名称(多个以,号隔开)
     */
    @TableField(value = "deal_user_name",updateStrategy = FieldStrategy.NOT_NULL)
    @ApiModelProperty(value = "处理人员名称(多个以,号隔开)")
    private String dealUserName;

    /**
     * 备注
     */
    @TableField(value = "remark")
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 补充说明
     */
    @TableField(value = "note")
    @ApiModelProperty(value = "补充说明")
    private String note;

    /**
     * 补充说明图片
     */
    @TableField(value = "note_img")
    @ApiModelProperty(value = "补充说明图片")
    private String noteImg;


    /**
     * 处理结果备注
     */
    @TableField(value = "result")
    @ApiModelProperty(value = "补充说明")
    private String result;

    /**
     * 处理结果图片
     */
    @TableField(value = "result_img")
    @ApiModelProperty(value = "处理结果图片")
    private String resultImg;

    /**
     * 完成时间
     */
    @TableField(value = "finish_time")
    @ApiModelProperty(value = "完成时间")
    private Date finishTime;

    /**
     * 响应时间
     */
    @TableField(value = "response_time")
    @ApiModelProperty(value = "响应时间")
    private Date responseTime;

    /**
     * 响应人员(user表id)
     */
    @TableField(value = "response_user")
    @ApiModelProperty(value = "响应人员(user表id)")
    private Integer responseUser;

    /**
     * 创建人
     */
    @TableField(value = "create_user")
    @ApiModelProperty(value = "创建人", hidden = true)
    private Integer createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_user")
    @ApiModelProperty(value = "更新人", hidden = true)
    private Integer updateUser;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间", hidden = true)
    private Date updateTime;

//    /**
//     * 信息内容
//     */
//    @TableField(exist = false)
//    @ApiModelProperty(value = "信息内容")
//    private String content;

    private static final long serialVersionUID = 1L;
}